Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use temporary folder container context manager for wsclean files #145

Merged
merged 7 commits into from
Jul 19, 2024

Conversation

tjgalvin
Copy link
Owner

wsclean is the main / only imager currently supported. As it executes it interacts with a set of fits images throughout deconvolution. Depending on their size, number of output channels etc there can be a rather large I/O burden to the disk supporting the filesystem.

Its been found that when many workflows are running concurrently there can be noticeable strain, and sometimes this can causes glitches to the filesystem, slow reads, freezes etc.

This change uses a hold_then_move_into context manager that configures wsclean outputs to be written to some other location, and then moved into place along side the corresponding MS. In practice, on a HPC it is useful to set this to refer to a local disk or a ram disk through appropriate environment variables that are evaluated as the wsclean command is being constructed and executed.

@tjgalvin tjgalvin merged commit c76ed7f into main Jul 19, 2024
2 checks passed
@tjgalvin tjgalvin deleted the tempdirman branch July 19, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant